package com.example.routelink.server2.controller;


import cn.hutool.json.JSONUtil;
import com.alibaba.nacos.api.annotation.NacosInjected;
import com.alibaba.nacos.api.exception.NacosException;
import com.alibaba.nacos.api.naming.NamingService;
import com.alibaba.nacos.api.naming.pojo.Instance;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

@RestController
@Slf4j
public class HomeController {

    @GetMapping("/hello")
    public String hello(@RequestParam(required = false) HashMap<String, Object> param) {
        log.info("记录日志 hello2 {}", JSONUtil.toJsonStr(param));
        return "Hello, 2";
    }
}
